package club.jdiy.core.sql;

import lombok.Getter;

import java.util.List;

/**
 * JPA实体　
 *
 * @author ziquee(子秋) QQ号:39886616 主页: http://www.jdiy.club
 * @version 20210503
 */
@Getter
public class EntityInfo extends CommentInfo {
    private final String packageName;
    private final String simpleName;
    private final String tableName;

    private List<EntityFieldInfo> fieldList;

    EntityInfo(String packageName, String simpleName, String tableName, String comment) {
        super(packageName+"."+simpleName,comment);
        this.packageName = packageName;
        this.simpleName = simpleName;
        this.tableName = tableName;
    }

    void setFieldList(List<EntityFieldInfo> fieldList) {
        this.fieldList = fieldList;
    }

}
